<?php

namespace App\Admin\Repositories;

use App\Models\Receipt as Model;
use Dcat\Admin\Grid;
use Dcat\Admin\Repositories\EloquentRepository;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * Class Receipt
 * @package App\Admin\Repositories
 *
 * @property-read $statusOptions
 */
class Receipt extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;


    public static function getStatusOptions()
    {
        return [
            0 => '未邮寄',
            1 => '已邮寄'
        ];
    }

    public static function getExpressNameOptions()
    {
        return [
            1 => '顺丰',
            2 => '中通',
            3 => '韵达'
        ];
    }
}
